package com.dkd.easybook.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import com.dkd.common.core.domain.TreeEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
/**
 * 用户记账类别对象 eb_user_account_category
 *
 * @author itheima
 * @date 2024-12-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EbUserAccountCategory extends TreeEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 用户类别ID
     */
    @TableId(type = IdType.AUTO)
    private Long userCategoryId;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;
    /**
     * 类别名称
     */
    @Excel(name = "类别名称")
    private String name;
    /**
     * 类别类型（收入或支出或其他）
     */
    @Excel(name = "类别类型", readConverterExp = "收=入或支出或其他")
    private String type;
    /**
     * 父类别ID
     */
    @Excel(name = "父类别ID")
    private Long parentId;
    /**
     * 图标ID
     */
    @Excel(name = "图标ID")
    private Long iconId;


    @TableField(exist = false)
    private String iconUrl;
    /**
     * 是否默认类别
     */
    @Excel(name = "是否默认类别")
    private Integer isDefault;
    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;
}
